<?php
/**
 * Created by PhpStorm.
 * User: zhao shou qiang
 * Date: 2017/12/27 0027
 * Time: 13:27
 */


use yii\helpers\Html;
use yii\grid\GridView;
use backend\assets\AppAsset;
use backend\controllers\DtActionFilter;

AppAsset::register($this);

//涉诉情况
$step2 = false;
if (!empty($lawsuitList) && is_array($lawsuitList))
    $step2 = true;

//列失信
$step3 = false;
if ($model->faith != '' || $model->limit_high != '' || $model->block_list != '' || $model->block_value != '')
    $step3 = true;

//其它补充
$step4 = false;
if ($model->update_log != '' || $model->other_guarantee != '' || $model->seal_order != '' || $model->other_mortgage != '')
    $step4 = true;

//市场询价
$step5 = false;
if ($model->evaluate_price != '' || $model->auction_price != '' || $model->identical_price != '' || $model->recently_price != '' || $model->buyer_price != '' || $model->rental_price != '' || $model->tax_price != '')
    $step5 = true;

//现场状态
$step6 = false;
if ($model->rent != '' || $model->live != '' || $model->interview != '')
    $step6 = true;

//回现评估
$step7 = false;
if ($model->payment_reservation != '' || $model->reservation_evidence != '' || $model->payment_radical != '' || $model->radical_evidence != '')
    $step7 = true;

$display_state = false;
if (DtActionFilter::checkProject('project_edit', $projectId)) {
    $display_state = true;
}

?>

<div class="jieKuanQingKuang top10" id="jieKuan">
    <div class="container containerShadow">
        <div class="row">
            <div class="topimg">
                <div class="left pull-left">
                    <span>借款人及资产情况</span>
                </div>
                <div class="pull-right">
                    <a href="###">
                        <?php
                        if ($display_state)
                            echo Html::img('@web/image/projectDetails/edit.png', ['class' => 'editImg']);
                        ?>
                    </a>
                </div>
            </div>

            <form name="stakeholder_borrower_readonly" action="">
                <p class="text-center" <?php if (!empty($model->id)) echo 'style="display:none;"'; ?> >暂无数据</p>
                <table border="" cellspacing=""
                       cellpadding="" <?php if (empty($model->id)) echo 'style="display:none;"'; ?>>
                    <tr>
                        <td>借款人名称</td>
                        <td>
                            <input type="text" name="ProjectInvestigationStakeholder['stakeholder_title']"
                                   value="<?php echo Html::encode($model->stakeholder_title); ?>"
                                   class="stakeholder_title"
                                   readonly="readonly" style="width: 100%; padding: 0px;"/>
                        </td>
                        <td>注册资本</td>
                        <td>
                            <input type="text" name="ProjectInvestigationStakeholder['registered_capital']"
                                   value="<?php echo Html::encode($model->registered_capital); ?>"
                                   class="registered_capital"
                                   readonly="readonly" style="width: 100%; padding: 0px;"/>
                        </td>
                    </tr>
                    <tr>
                        <td>注册地址</td>
                        <td>
                       		<pre name="ProjectInvestigationStakeholder['registered_address']" class="registered_address"><?php echo Html::encode($model->registered_address); ?></pre>
                            <!--<input type="text" name="ProjectInvestigationStakeholder['registered_address']"
                                   value="<?php echo Html::encode($model->registered_address); ?>"
                                   class="registered_address"
                                   readonly="readonly" style="width: 100%; padding: 0px;"/>-->
                        </td>
                        <td>法定代表人</td>
                        <td>
                            <input type="text" name="ProjectInvestigationStakeholder['legal_representative']"
                                   value="<?php echo Html::encode($model->legal_representative); ?>"
                                   class="legal_representative"
                                   readonly="readonly" style="width: 100%; padding: 0px;"/>
                        </td>
                    </tr>
                    <tr>
                        <td>经营范围</td>
                        <td>
                        		<pre name="ProjectInvestigationStakeholder['scope_of_business']"  class="scope_of_business-pre"><?php echo Html::encode($model->scope_of_business); ?></pre>
                            <!--<input type="text" name="ProjectInvestigationStakeholder['scope_of_business']"
                                   value="<?php echo Html::encode($model->scope_of_business); ?>"
                                   class="scope_of_business"
                                   readonly="readonly" style="width: 100%; padding: 0px;"/>-->
                        </td>
                        <td>股东及持股比例</td>
                        <td>
                            <input type="text" name="ProjectInvestigationStakeholder['proportion']"
                                   value="<?php echo Html::encode($model->proportion); ?>" class="proportion"
                                   readonly="readonly" style="width: 100%; padding: 0px;"/>
                        </td>
                    </tr>
                    <tr>
                        <td>借款人状况</td>
                        <td>

                            <input type="text" name="ProjectInvestigationStakeholder['borrower']"
                                   value="<?php echo Html::encode($model->borrower); ?>"
                                   class="borrower" readonly="readonly" style="width: 100%; padding: 0px;"/>
<!--                                   value="--><?php
//                                   $managementStatus = Yii::$app->params['managementStatus'];
//                                   if ($model->borrower == 0) {
//                                       echo '';
//                                   } else {
//                                       echo Html::encode($managementStatus[(string)$model->borrower]);
//                                   }
//                                   ?><!--" -->
                        </td>
                        <td>和解回购意愿</td>
                        <td>
                        		<pre name="ProjectInvestigationStakeholder['buy_back']" class="buy_back-pre"><?php echo Html::encode($model->buy_back); ?></pre>
                            <!--<input type="text" name="ProjectInvestigationStakeholder['buy_back']"
                                   value="<?php echo Html::encode($model->buy_back); ?>" class="buy_back"
                                   readonly="readonly" style="width: 100%; padding: 0px;"/>-->
                        </td>
                    </tr>
                </table>
            </form>

            <form action="" name="stakeholder_borrower_edit" class="zhaiWuEdit borderColor" style="display: none;">
                <input type="hidden" name="ProjectInvestigationStakeholder[stakeholder_type]" value="1"/>
                <input type="hidden" name="ProjectInvestigationStakeholder[project_id]"
                       value="<?php echo $projectId; ?>"/>
                <table class="table4 jie-kuan" border="" cellspacing="" cellpadding="">
                    <tr>
                        <td>借款人名称</td>
                        <td>
                            <input type="text" name="ProjectInvestigationStakeholder[stakeholder_title]"
                                   class="stakeholder_title"
                                   value="<?php echo Html::encode($model->stakeholder_title); ?>"/>
                        </td>
                        <td>注册资本</td>
                        <td>
                            <input type="text" name="ProjectInvestigationStakeholder[registered_capital]"
                                   class="registered_capital"
                                   value="<?php echo Html::encode($model->registered_capital); ?>"/>
                        </td>
                    </tr>
                    <tr>
                        <td>注册地址</td>
                        <td>
                            <input type="text" name="ProjectInvestigationStakeholder[registered_address]"
                                   class="registered_address"
                                   value="<?php echo Html::encode($model->registered_address); ?>"/>
                        </td>
                        <td>法定代表人</td>
                        <td>
                            <input type="text" name="ProjectInvestigationStakeholder[legal_representative]"
                                   class="legal_representative"
                                   value="<?php echo Html::encode($model->legal_representative); ?>"/>
                        </td>
                    </tr>
                    <tr>
                        <td>经营范围</td>
                        <td>
                            <input type="text" name="ProjectInvestigationStakeholder[scope_of_business]"
                                   class="scope_of_business"
                                   value="<?php echo Html::encode($model->scope_of_business); ?>"/>
                        </td>
                        <td>股东及持股比例</td>
                        <td>
                            <input type="text" name="ProjectInvestigationStakeholder[proportion]"
                                   class="proportion"
                                   value="<?php echo Html::encode($model->proportion); ?>"/>
                        </td>
                    </tr>
                    <tr>
                        <td>借款人状况</td>
                        <td>
                            <select name="ProjectInvestigationStakeholder[borrower]" class="borrower"
                                    style="width: 100%;">
                                <?php
                                $managementStatus = Yii::$app->params['managementStatus'];
                                if (!empty($managementStatus) && is_array($managementStatus)) {
                                    foreach ($managementStatus as $key => $value) {
                                        if ($model->borrower == '') {
                                            if ($key == 0) {
                                                echo '<option selected value="0">' . $value . '</option>';
                                            } else {
                                                echo '<option  value="' . $value . '">' . $value . '</option>';
                                            }
                                        } else {
                                            if ($model->borrower == $value) {
                                                echo '<option selected value="' . $value . '">' . $value . '</option>';
                                            } else {
                                                echo '<option value="' . $value . '">' . $value . '</option>';
                                            }
                                        }
                                    }
                                }
                                ?>
                            </select>
                        </td>
                        <td>和解回购意愿</td>
                        <td>
                            <input type="text" name="ProjectInvestigationStakeholder[buy_back]" class="buy_back"
                                   value="<?php echo Html::encode($model->buy_back); ?>"/>
                        </td>
                    </tr>
                </table>
                <div class="cancelInConfirm clearfix">
                    <input class="cancelInConfirmActive stakeholder_borrower_comfirm" type="button"
                           value="保存"/>
                    <input id='cancel' type="button" value="取消"/>
                </div>
            </form>

            <!--涉诉情况-->
            <div class="centerText clearfix ">
                <span class="pull-left">涉诉情况
                    <span class="step2_nothing"><?php if (!$step2) echo '（暂无数据）'; ?></span>
                </span>
                <div>
                    <a href="###" class="pull-right">
                        <?php
                        if ($display_state)
                            echo Html::img('@web/image/projectDetails/edit.png', ['class' => 'editImg']);
                        ?>
                    </a>
                </div>
            </div>
            <form name="lawsuit_borrower_readonly" action="" class="she-su-qing-kuang"
                  style="display: <?php if (!$step2) echo 'none'; else echo 'block'; ?>">
                <table class="tableLien top30" border="" cellspacing="" cellpadding="" class="top30">
                    <tr>
                        <td>涉诉案号</td>
                        <td>涉诉原告/申请执行人</td>
                        <td>涉诉被告/被申请人</td>
                        <td>涉诉金额</td>
                        <td>法院</td>
                        <td>涉诉内容</td>
                    </tr>

                    <?php
                    if (!empty($lawsuitList) && is_array($lawsuitList)) {
                        foreach ($lawsuitList as $key => $value) {
                            echo '
                                <tr>
                                    <td>
                                    	<span class="txt-cut-1" title = "' . $value['records_number'] . '">
                                    		' . $value['records_number'] . '
                                    	</span>
                                    </td>
                                    <td>
                                    	<span class = "txt-cut-1" title = "' . $value['accuser'] . '">
                                    		' . $value['accuser'] . '
                                    	</span>
                                    </td>
                                    <td style="color:#333!important;background: #fff!important;">
                                    	<span class = "txt-cut-1" title = "' . $value['defendant'] . '" style="color:#333!important">
                                    		' . $value['defendant'] . '
                                    	</span>
                                    </td>
                                    <td>
                                    	<span class = "txt-cut-1" title = "' . $value['money'] . '">
                                    		' . $value['money'] . '
                                    	</span>
                                    </td>
                                    <td>
                                    	<span class = "txt-cut-1" title = "' . $value['court'] . '">
                                    		' . $value['court'] . '
                                    	</span>
                                    </td>
                                    <td>
                                    	<span class = "txt-cut-1" title = "' . $value['lawsuit_content'] . '">
                                    		' . $value['lawsuit_content'] . '
                                    	</span>
                                    </td>
                                </tr>
                                 ';
                        }
                    }
                    ?>
                </table>
            </form>

            <form name="lawsuit_borrower_edit" action="" class="zhaiWuEdit she-su-qing-kuang-edit borderColor"
                  style="display: none;">
                <table class="table-lien suSongQingKuang top30" border="" cellspacing="" cellpadding=""
                       class="top30">
                    <tr class="td_top">
                        <td>涉诉案号</td>
                        <td>涉诉原告/申请执行人</td>
                        <td>涉诉被告/被申请人</td>
                        <td>涉诉金额</td>
                        <td>法院</td>
                        <td>涉诉内容</td>
                        <td>&nbsp;</td>
                    </tr>

                    <?php
                    if (!empty($lawsuitList) && is_array($lawsuitList)) {
                        foreach ($lawsuitList as $key => $value) {
                            echo '
                                <tr>
                                    <td>
                                        <input type="text" name="info[' . $key . '][records_number]" class="records_number' . $key . '" value="' . $value['records_number'] . '"/>
                                    </td>
                                    <td>
                                        <input type="text" name="info[' . $key . '][accuser]" class="accuser' . $key . '" value="' . $value['accuser'] . '"/>
                                    </td>
                                    <td>
                                        <input type="text" name="info[' . $key . '][defendant]" class="defendant' . $key . '" value="' . $value['defendant'] . '"style="color:#333!important"/>
                                    </td>
                                    <td>
                                        <input type="text" name="info[' . $key . '][money]" class="money' . $key . '" value="' . $value['money'] . '"/>
                                    </td>
                                    <td>
                                        <input type="text" name="info[' . $key . '][court]" class="court' . $key . '" value="' . $value['court'] . '"/>
                                    </td>
                                    <td>
                                        <input type="text" name="info[' . $key . '][lawsuit_content]" class="lawsuit_content' . $key . '" value="' . $value['lawsuit_content'] . '"/>
                                    </td>
                                    <td>
                                        <input type="hidden" name="info[' . $key . '][id]" id="lawsuit_id' . $key . '" value="' . $value['id'] . '"/>
                                        <input type="button" class="remove delete_investigation_lawsuit" data-id="' . $value['id'] . '" value="删除"/>
                                    </td>
                                </tr>
                                 ';

                            /*<input type="button" class="remove delete_investigation_lawsuit" data-toggle="modal" data-target="#deleModal"
                                               data-id="info[' . $key . '][id]" value="删除"/>*/
                        }
                    }
                    ?>
                </table>
                <div class="cancelInConfirm clearfix">
                    <div class="left">
                        <input type="button" class="pull-left continueAdd" value="继续添加涉诉情况"/>
                    </div>
                    <input class="cancelInConfirmActive edit_lawsuit_confirm" type="button" value="保存"/>
                    <input type="button" class="edit_lawsuit_cnacel" value="取消"/>
                </div>
            </form>

            <!--列失信-->
            <div name="stakeholder_borrower_readonly" class="centerText clearfix ">
                <span class="pull-left">
                    列失信
                    <span class="step3_nothing"><?php if (!$step3) echo '（暂无数据）'; ?></span>
                </span>
                <div>
                    <a href="###" class="pull-right">
                        <?php
                        if ($display_state)
                            echo Html::img('@web/image/projectDetails/edit.png', ['class' => 'editImg']);
                        ?>
                    </a>
                </div>
            </div>

            <form name="stakeholder_borrower_readonly" class="lie-shi-xin"
                  style="display: <?php if (!$step3) echo 'none'; else echo 'block'; ?>">
                <table border="" cellspacing="" cellpadding="" class="top30 labelRowLine">
                    <tr>
                        <td>是否列失信</td>
                        <td>
                            <input type="text" name="ProjectInvestigationStakeholder[faith]" readonly
                                   class="faith"
                                   value="<?php
                                   if ($model->faith > 0) {
                                       $status = Yii::$app->params['faith'];
                                       echo $status[$model->faith];
                                   } else {
                                       echo '';
                                   }
                                   ?>"/>
                        </td>
                        <td>是否限高</td>
                        <td>
                            <input type="text" name="ProjectInvestigationStakeholder[limit_high]" readonly
                                   class="limit_high"
                                   value="<?php
                                   if ($model->limit_high > 0) {
                                       $status = Yii::$app->params['limitHigh'];
                                       echo $status[$model->limit_high];
                                   } else {
                                       echo '';
                                   }
                                   ?>"/>
                        </td>
                    </tr>
                    <tr>
                        <td>失信名单</td>
                        <td colspan="3">
                        	<pre class="block_list-pre"><?php echo Html::encode($model->block_list); ?></pre>
                                <!--<textarea name="ProjectInvestigationStakeholder[block_list]" readonly
                                          class="block_list" rows=""
                                          cols="" style="border:none!important"><?php echo Html::encode($model->block_list); ?></textarea>-->
                        </td>
                    </tr>
                    <tr>
                        <td>列失信价值描述</td>
                        <td colspan="3">
                        	<pre class="block_value-pre"><?php echo Html::encode($model->block_value); ?></pre>
                            <!--<div>
                                    <textarea name="ProjectInvestigationStakeholder[block_value]" readonly
                                              class="block_value" rows="" cols=""
                                              style="border:none!important"><?php echo Html::encode($model->block_value); ?></textarea>
                            </div>-->
                        </td>
                    </tr>
                </table>
            </form>

            <form name="stakeholder_borrower_edit" action="" class="zhaiWuEdit lie-shi-xin-edit borderColor"
                  style="display: none;">
                <table border="" cellspacing="" cellpadding="" class="top30 labelRowline">
                    <tr>
                        <td>是否列失信</td>
                        <td>
                            <label for="ynleiYes">
                                <span class="<?php if ($model->faith == 1) echo 'yesActive'; else echo 'noActive'; ?>">是</span>
                                <input type="radio"
                                       class="yes faith_true" <?php if ($model->faith == 1) echo 'checked' ?>
                                       name='ProjectInvestigationStakeholder[faith]'
                                       value="1" id="ynleiYes"/>
                            </label>
                            <label for="ynleiNo">
                                <span class="<?php if ($model->faith == 2) echo 'yesActive'; else echo 'noActive'; ?>">否</span>
                                <input type="radio" <?php if ($model->faith == 2) echo 'checked' ?>
                                       class="no faith_false"
                                       name='ProjectInvestigationStakeholder[faith]'
                                       value="2" id="ynleiNo"/>
                            </label>
                        </td>
                        <td class="heighYn">是否限高</td>
                        <td>
                            <label for="ynGaoYes">
                                <span class="<?php if ($model->limit_high == 1) echo 'yesActive'; else echo 'noActive'; ?>">是</span>
                                <input type="radio"
                                       class="yes limit_high_true" <?php if ($model->limit_high == 1) echo 'checked' ?>
                                       name='ProjectInvestigationStakeholder[limit_high]'
                                       value="1" id="ynGaoYes"/>
                            </label>
                            <label for="ynGaoNo">
                                <span class="<?php if ($model->limit_high == 2) echo 'yesActive'; else echo 'noActive'; ?>">否</span>
                                <input type="radio"
                                       class="no limit_high_false" <?php if ($model->limit_high == 2) echo 'checked' ?>
                                       name='ProjectInvestigationStakeholder[limit_high]'
                                       value="2" id="ynGaoNo"/>
                            </label>
                        </td>
                    </tr>
                    <tr>
                        <td>失信名单</td>
                        <td colspan="3">
                                <textarea name="ProjectInvestigationStakeholder[block_list]" class="block_list textarea-edit2"
                                          rows="" cols=""><?php echo Html::encode($model->block_list); ?></textarea>
                        </td>
                    </tr>
                    <tr>
                        <td>列失信价值描述</td>
                        <td colspan="3">
                                <textarea name="ProjectInvestigationStakeholder[block_value]" class="block_value textarea-edit2"
                                          rows="" cols=""><?php echo Html::encode($model->block_value); ?></textarea>
                        </td>
                    </tr>
                </table>
                <div class="cancelInConfirm clearfix">
                    <input class="cancelInConfirmActive stakeholder_borrower_comfirm" type="button"
                           value="保存"/>
                    <input id='cancel' type="button" value="取消"/>
                </div>
            </form>

            <!--其他补充-->
            <div class="centerText clearfix ">
                <span class="pull-left">其他补充
                <span class="step4_nothing"><?php if (!$step4) echo '（暂无数据）'; ?></span>
                </span>
                <div>
                    <a href="javascript:;" class="pull-right">
                        <?php
                        if ($display_state)
                            echo Html::img('@web/image/projectDetails/edit.png', ['class' => 'editImg']);
                        ?>
                    </a>
                </div>
            </div>

            <form name="stakeholder_borrower_readonly" action="" class="other-bu-chong"
                  style="display: <?php if (!$step4) echo 'none'; else echo 'block'; ?>">
                <table border="" cellspacing="" cellpadding="" class="top30 otherBuChong ">
                    <tr>
                        <td>变更记录</td>
                        <td>
                        	<pre  class="update_log-pre"><?php echo Html::encode($model->update_log); ?></pre>
                                <!--<textarea name="ProjectInvestigationStakeholder[update_log]" readonly
                                          class="update_log" rows=""
                                          cols="" style="border: none!important;"><?php echo Html::encode($model->update_log); ?></textarea>-->
                        </td>

                    </tr>
                    <tr>
                        <td>抵押物外其<br/>他承债资产</td>
                        <td>
                        	<pre class="other_guarantee-pre"><?php echo Html::encode($model->other_guarantee); ?></pre>
                               <!--<textarea name="ProjectInvestigationStakeholder[other_guarantee]" readonly
                                         class="other_guarantee" rows=""
                                         cols="" style="border: none!important;"><?php echo Html::encode($model->other_guarantee); ?></textarea>-->
                        </td>
                    </tr>
                    <tr>
                        <td>
                            查封顺序
                        </td>
                        <td>
                        	<pre class="seal_order-pre"><?php echo Html::encode($model->seal_order); ?></pre>
                                <!--<textarea name="ProjectInvestigationStakeholder[seal_order]" readonly
                                          class="seal_order" rows=""
                                          cols="" style="border: none!important;"><?php echo Html::encode($model->seal_order); ?></textarea>-->
                        </td>
                    </tr>
                    <tr>
                        <td>
                            其他抵押、查封<br/> 详情
                        </td>
                        <td>
                        	<pre class="other_mortgage-pre"><?php echo Html::encode($model->other_mortgage); ?></pre>
                                <!--<textarea name="ProjectInvestigationStakeholder[other_mortgage]" readonly
                                          class="other_mortgage" rows=""
                                          cols="" style="border: none!important;"><?php echo Html::encode($model->other_mortgage); ?></textarea>-->
                        </td>
                    </tr>
                </table>
            </form>

            <form name="stakeholder_borrower_edit" action="" class="zhaiWuEdit" style="display: none;">
                <table border="" cellspacing="" cellpadding="" class="top30 otherBuChong edit-table1">
                    <tr>
                        <td>变更记录</td>
                        <td>
                                <textarea name="ProjectInvestigationStakeholder[update_log]" class="update_log textarea-edit2"
                                          rows="" cols=""><?php echo Html::encode($model->update_log); ?></textarea>
                        </td>

                    </tr>
                    <tr>
                        <td>抵押物外其<br/>他承债资产</td>
                        <td>
                                <textarea name="ProjectInvestigationStakeholder[other_guarantee]"
                                          class="other_guarantee textarea-edit2"
                                          rows=""
                                          cols=""><?php echo Html::encode($model->other_guarantee); ?></textarea>
                        </td>
                    </tr>
                    <tr>
                        <td>
                            查封顺序
                        </td>
                        <td>
                                <textarea name="ProjectInvestigationStakeholder[seal_order]" class="seal_order textarea-edit2"
                                          rows="" cols=""><?php echo Html::encode($model->seal_order); ?></textarea>
                        </td>
                    </tr>
                    <tr>
                        <td>
                            其他抵押、查封详情
                        </td>
                        <td>
                                <textarea name="ProjectInvestigationStakeholder[other_mortgage]" class="other_mortgage textarea-edit2"
                                          rows="" cols=""><?php echo Html::encode($model->other_mortgage); ?></textarea>
                        </td>
                    </tr>
                </table>
                <div class="cancelInConfirm clearfix">
                    <input class="cancelInConfirmActive stakeholder_borrower_comfirm" type="button" value="保存"/>
                    <input id='cancel' type="button" value="取消"/>
                </div>
            </form>

            <!--市场询价-->
            <div class="centerText clearfix ">
                <span class="pull-left">
                    市场询价
                    <span class="step5_nothing"><?php if (!$step5) echo '（暂无数据）'; ?></span>
                </span>
                <div>
                    <a href="javascript:;" class="pull-right">
                        <?php
                        if ($display_state)
                            echo Html::img('@web/image/projectDetails/edit.png', ['class' => 'editImg']);
                        ?>
                    </a>
                </div>
            </div>

            <form name="stakeholder_borrower_readonly" action=""
                  style="display: <?php if (!$step5) echo 'none'; else echo 'block'; ?>">
                <table border="" cellspacing="" cellpadding="" class="top30 shiChangXunJia labelRowLine">
                    <tr>
                        <td>法院评估价</td>
                        <td>
                            <input type="text" name="ProjectInvestigationStakeholder[evaluate_price]" id=""
                                   readonly class="evaluate_price"
                                   value="<?php echo Html::encode($model->evaluate_price); ?>">
                        </td>
                        <td>法院拍卖价</td>
                        <td>
                            <input type="text" name="ProjectInvestigationStakeholder[auction_price]" id=""
                                   readonly class="auction_price"
                                   value="<?php echo Html::encode($model->auction_price); ?>">
                        </td>
                    </tr>
                    <tr>
                        <td style="height: 66px;">
                            同类型司法拍<br/> 卖资产价格
                        </td>
                        <td colspan="3">
                        	<pre name="ProjectInvestigationStakeholder[identical_price]" class="identical_price"><?php echo Html::encode($model->identical_price); ?></pre>
                                <!--<textarea name="ProjectInvestigationStakeholder[identical_price]" readonly
                                          class="identical_price" rows=""
                                          cols=""
                                          style="border: none!important;"><?php echo Html::encode($model->identical_price); ?></textarea>-->
                        </td>
                    </tr>
                    <tr>
                        <td style="height: 80px">
                            访谈中介最<br/> 近成交价及
                            <br/> 快速转让价
                        </td>
                        <td colspan="3">
                        	<pre name="ProjectInvestigationStakeholder[recently_price]" class="recently_price"><?php echo Html::encode($model->recently_price); ?></pre>
                                <!--<textarea name="ProjectInvestigationStakeholder[recently_price]" readonly
                                          class="recently_price" rows=""
                                          cols=""
                                          style="border: none!important;"><?php echo Html::encode($model->recently_price); ?></textarea>-->
                        </td>
                    </tr>
                    <tr>
                        <td>
                            买家报价
                        </td>
                        <td colspan="3">
                        	  <pre  class="buyer_price" name="ProjectInvestigationStakeholder[buyer_price]"  ><?php echo Html::encode($model->buyer_price); ?></pre>
                        	 <!--  <input type="text" name="ProjectInvestigationStakeholder[buyer_price]"  readonly="readonly" value="<?php echo Html::encode($model->buyer_price); ?>"   class="buyer_price" />-->
                                <!--<textarea name="ProjectInvestigationStakeholder[buyer_price]" readonly
                                          class="buyer_price" rows=""
                                          cols="" style="border: none!important;"><?php echo Html::encode($model->buyer_price); ?></textarea>-->
                        </td>
                    </tr>
                    <tr>
                        <td style="height: 66px">
                            租金情况及其<br/> 他可比物业
                        </td>
                        <td colspan="3">
                        	<pre name="ProjectInvestigationStakeholder[rental_price]" 
                                          class="rental_price" rows=""><?php echo Html::encode($model->rental_price); ?></pre>
                                <!--<textarea name="ProjectInvestigationStakeholder[rental_price]" readonly
                                          class="rental_price" rows=""
                                          cols=""
                                          style="border: none!important;"><?php echo Html::encode($model->rental_price); ?></textarea>-->
                        </td>
                    </tr>
                    <tr>
                        <td>
                            税费
                        </td>
                        <td colspan="3">
                        	<pre name="ProjectInvestigationStakeholder[tax_price]" class="tax_price"><?php echo Html::encode($model->tax_price); ?></pre>
                        	<!--<input type="text" name="ProjectInvestigationStakeholder[tax_price]" class="tax_price" id="" readonly="readonly" value="<?php echo Html::encode($model->tax_price); ?>" />-->
                                <!--<textarea name="ProjectInvestigationStakeholder[tax_price]" readonly class="tax_price"
                                          rows=""
                                          cols="" style="border: none!important;"><?php echo Html::encode($model->tax_price); ?></textarea>-->
                        </td>
                    </tr>
                </table>
            </form>

            <form name="stakeholder_borrower_edit" action="" class="zhaiWuEdit borderColor" style="display: none;">
                <table border="" cellspacing="" cellpadding="" class="top30   edit-table2">
                    <tr>
                        <td>法院评估价</td>
                        <td>
                            <input type="text" name="ProjectInvestigationStakeholder[evaluate_price]"
                                   class="evaluate_price" isNumber='true' onkeydown="true"
                                   value="<?php echo Html::encode($model->evaluate_price); ?>"/>
                        </td>
                        <td>法院拍卖价</td>
                        <td>
                            <input type="text" name="ProjectInvestigationStakeholder[auction_price]" isNumber='true' onkeydown="true"
                                   class="auction_price"
                                   value="<?php echo Html::encode($model->auction_price); ?>"/>
                        </td>
                    </tr>
                    <tr>
                        <td>
                            同类型司法拍<br/> 卖资产价格
                        </td>
                        <td colspan="3">
                                <textarea name="ProjectInvestigationStakeholder[identical_price]"
                                          class="identical_price textarea-edit2" rows=""
                                          cols=""><?php echo Html::encode($model->identical_price); ?></textarea>
                        </td>
                    </tr>
                    <tr>
                        <td>
                            访谈中介最<br/> 近成交价及
                            <br/> 快速转让价
                        </td>
                        <td colspan="3">
                                <textarea name="ProjectInvestigationStakeholder[recently_price]"
                                          class="recently_price textarea-edit2" rows=""
                                          cols=""><?php echo Html::encode($model->recently_price); ?></textarea>
                        </td>
                    </tr>
                    <tr>
                        <td>
                            买家报价
                        </td>
                        <td colspan="3">
                                <textarea name="ProjectInvestigationStakeholder[buyer_price]"
                                          class="buyer_price textarea-edit2" rows=""
                                          cols=""><?php echo Html::encode($model->buyer_price); ?></textarea>
                        </td>
                    </tr>
                    <tr>
                        <td>
                            租金情况及其<br/> 他可比物业
                        </td>
                        <td colspan="3">
                                <textarea name="ProjectInvestigationStakeholder[rental_price]"
                                          class="rental_price textarea-edit2" rows=""
                                          cols=""><?php echo Html::encode($model->rental_price); ?></textarea>
                        </td>
                    </tr>
                    <tr>
                        <td>
                            税费
                        </td>
                        <td colspan="3">
                                <textarea name="ProjectInvestigationStakeholder[tax_price]"  class="tax_price textarea-edit2"
                                          rows="" cols=""><?php echo Html::encode($model->tax_price); ?></textarea>
                        </td>
                    </tr>
                </table>
                <div class="cancelInConfirm clearfix">
                    <input class="cancelInConfirmActive stakeholder_borrower_comfirm" type="button"
                           value="保存"/>
                    <input id='cancel' type="button" value="取消"/>
                </div>
            </form>

            <!--现场状态-->
            <div class="centerText clearfix ">
                <span class="pull-left">
                    现场状态
                    <span class="step6_nothing"><?php if (!$step6) echo '（暂无数据）'; ?></span>
                </span>
                <div>
                    <a href="#javascript:;##" class="pull-right">
                        <?php
                        if ($display_state)
                            echo Html::img('@web/image/projectDetails/edit.png', ['class' => 'editImg']);
                        ?>
                    </a>
                </div>
            </div>

            <form name="stakeholder_borrower_readonly" action=""  style="display: <?php if (!$step6) echo 'none'; else echo 'block'; ?>">
                <table border="" cellspacing="" cellpadding="" class="top30 table2 xianChangList">
                    <tr>
                        <td>租 赁</td>
                        <td>
                        	<pre class="rent-pre"><?php echo Html::encode($model->rent); ?></pre>
                                <!--<textarea name="ProjectInvestigationStakeholder[rent]" readonly class="rent" rows=""
                                          cols="" style="border: none!important;"><?php echo Html::encode($model->rent); ?></textarea>-->
                        </td>
                    </tr>
                    <tr>
                        <td>居 住</td>
                        <td>
                        	<pre class="live-pre"><?php echo Html::encode($model->live); ?></pre>
                                <!--<textarea name="ProjectInvestigationStakeholder[live]" readonly class="live" rows=""
                                          cols="" style="border: none!important;"><?php echo Html::encode($model->live); ?></textarea>-->
                        </td>
                    </tr>
                    <tr>
                        <td style="height: 64px;">现场访谈<br/> 其他情况</td>
                        <td>
                        	<pre class="interview-pre"><?php echo Html::encode($model->interview); ?></pre>
                                <!--<textarea name="ProjectInvestigationStakeholder[interview]" readonly
                                          class="interview" rows=""
                                          cols="" style="border: none!important;"><?php echo Html::encode($model->interview); ?></textarea>-->

                        </td>
                    </tr>
                </table>
            </form>

            <form name="stakeholder_borrower_edit" action="" class="zhaiWuEdit" style="display: none;">
                <table border="" cellspacing="" cellpadding="" class="top30 table2 edit-table1">
                    <tr>
                        <td>租 赁</td>
                        <td>
                                <textarea name="ProjectInvestigationStakeholder[rent]" rows="" cols="" class="rent textarea-edit2"
                                          placeholder="是否有租赁。承租人、租金、租期。"><?php echo Html::encode($model->rent); ?></textarea>
                        </td>
                    </tr>
                    <tr>
                        <td>居 住</td>
                        <td>
                                <textarea name="ProjectInvestigationStakeholder[live]" rows="" cols="" class="live textarea-edit2"
                                          placeholder="是否有人住。谁在住、清场难度。"><?php echo Html::encode($model->live); ?></textarea>
                        </td>
                    </tr>
                    <tr>
                        <td>现场访谈<br/> 其他情况
                        </td>
                        <td>
                                <textarea name="ProjectInvestigationStakeholder[interview]" rows=""
                                          class="interview textarea-edit2"
                                          cols=""><?php echo Html::encode($model->interview); ?></textarea>
                        </td>
                    </tr>
                </table>

                <div class="cancelInConfirm clearfix">
                    <input class="cancelInConfirmActive stakeholder_borrower_comfirm" type="button"
                           value="保存"/>
                    <input id='cancel' type="button" value="取消"/>
                </div>
            </form>

            <!--回现评估-->
            <div class="centerText clearfix ">
                <span class="pull-left">
                    回现评估
                    <span class="step7_nothing"><?php if (!$step7) echo '（暂无数据）'; ?></span>
                </span>
                    <div>
                    <a href="###" class="pull-right">
                        <?php
                        if ($display_state)
                            echo Html::img('@web/image/projectDetails/edit.png', ['class' => 'editImg']);
                        ?>
                    </a>
                </div>
            </div>

            <form name="stakeholder_borrower_readonly" action=""
                  style="display: <?php if (!$step7) echo 'none'; else echo 'block'; ?>">
                <table border="" cellspacing="" cellpadding="" class="top30">
                    <tr>
                        <td>回现保守</td>
                        <td>
                        	<!--<pre class="payment_reservation-pre"><?php /*echo Html::encode($model->payment_reservation); */?></pre>-->
                            <input type="text" name="ProjectInvestigationStakeholder[payment_reservation]" id=""
                                   readonly class="payment_reservation"
                                   value="<?php echo Html::encode($model->payment_reservation); ?>">
                        </td>
                        <td>回现激进</td>
                        <td>
                        	<!--<pre class="payment_radical-pre"><?php /*echo Html::encode($model->payment_radical); */?></pre>-->
                            <input type="text" name="ProjectInvestigationStakeholder[payment_radical]" readonly
                                   class="payment_radical"
                                   id="" value="<?php echo Html::encode($model->payment_radical); ?>">
                        </td>

                    </tr>
                    <tr>
                        <td>保守依据</td>
                        <td>
                        	<pre class="reservation_evidence-pre"><?php echo Html::encode($model->reservation_evidence); ?></pre>
                                <!--<textarea name="ProjectInvestigationStakeholder[reservation_evidence]" rows=""
                                          readonly class="reservation_evidence"
                                          cols="" style="border: none!important;" style="border: none!important;"><?php echo Html::encode($model->reservation_evidence); ?></textarea>-->
                        </td>
                        <td>激进依据</td>
                        <td>
                        	<pre  class="radical_evidence-pre"><?php echo Html::encode($model->radical_evidence); ?></pre>
                                <!--<textarea name="ProjectInvestigationStakeholder[radical_evidence]" readonly
                                          class="radical_evidence"
                                          rows=""
                                          cols="" style="border: none!important;"><?php echo Html::encode($model->radical_evidence); ?></textarea>-->
                        </td>
                    </tr>
                </table>
            </form>

            <form name="stakeholder_borrower_edit" action="" class="zhaiWuEdit borderColor" id='marketInquiry' style="display: none;">
                <table border="" cellspacing="" cellpadding="" class="top30 edit-table1">
                    <tr>
                        <td>回现保守</td>
                        <td>
                            <input type="text" name="ProjectInvestigationStakeholder[payment_reservation]" id=""
                                   class="payment_reservation"
                                   value="<?php echo Html::encode($model->payment_reservation); ?>">
                        </td>
                        <td>回现激进</td>
                        <td>
                            <input type="text" name="ProjectInvestigationStakeholder[payment_radical]"
                                   class="payment_radical"
                                   id="" value="<?php echo Html::encode($model->payment_radical); ?>">
                        </td>
                    </tr>
                    <tr>
                        <td>保守依据</td>
                        <td>
                                <textarea name="ProjectInvestigationStakeholder[reservation_evidence]" rows=""
                                          class="reservation_evidence textarea-edit2 bYiJu"
                                          cols=""><?php echo Html::encode($model->reservation_evidence); ?></textarea>
                        </td>
                        <td>激进依据</td>
                        <td>
                                <textarea name="ProjectInvestigationStakeholder[radical_evidence]"
                                          class="radical_evidence textarea-edit2 jYiJu"
                                          rows=""
                                          cols=""><?php echo Html::encode($model->radical_evidence); ?></textarea>
                        </td>
                    </tr>
                </table>
                <div class="cancelInConfirm clearfix">
                    <input class="cancelInConfirmActive stakeholder_borrower_comfirm" type="button"
                           value="保存"/>
                    <input id='cancel' type="button" value="取消"/>
                </div>
            </form>
            <input type="hidden" name="id" id="stakeholder_borrower_id" value="<?php echo $model->id; ?>"/>

            <input type="hidden" class="step2_state" value="<?php if($step2) echo 1; else echo 2;?>"/>
            <input type="hidden" class="step3_state" value="<?php if($step3) echo 1; else echo 2;?>"/>
            <input type="hidden" class="step4_state" value="<?php if($step4) echo 1; else echo 2;?>"/>
            <input type="hidden" class="step5_state" value="<?php if($step5) echo 1; else echo 2;?>"/>
            <input type="hidden" class="step6_state" value="<?php if($step6) echo 1; else echo 2;?>"/>
            <input type="hidden" class="step7_state" value="<?php if($step7) echo 1; else echo 2;?>"/>

            <!--<input type="hidden" id="stakeholder_warrantor_ids" value="<?php /*/*echo $ids; */ ?>"/>

                <input type="hidden" id="stakeholder_warrantor_count" value="<?php /*/*echo count($list); */ ?>"/>-->
        </div>
    </div>
</div>

